<template>
	<div id="three">
		<h1>three</h1>
		<input type="text" v-model="value" />
		<button @click="send()">非父子组件传值</button>
	</div>
</template>

<script>
//import center from "./center.js"

export default {
	data(){
		return {
			value: ""
		}
	},
	methods:{
		send(){
			//触发事件 发送数据
			this.center.$emit("passEvent",this.value)
		}
	}
}

</script>

<style>
#three{
	padding: 20px;
	background: green;
	border: 2px solid #000000;
}
</style>